package cn.fu.javamail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**   
* @Title: MyAuthenticator.java 
* @Package com.viewhigh.yhrpweb.web.sys.service.impl.mail 
* @Description: TODO(用一句话描述该文件做什么) 
* @author zhangxiaofu   
* @Company www.viewhigh.com
* @date 2016年9月19日 上午11:34:49 
* @version V1.0   
*/
public class MyAuthenticator extends Authenticator {
    String userName=null;   
    String password=null;   
        
    public MyAuthenticator(){   
    }   
    public MyAuthenticator(String username, String password) {    
        this.userName = username;    
        this.password = password;    
    }    
    protected PasswordAuthentication getPasswordAuthentication(){   
        return new PasswordAuthentication(userName, password);   
    }   
}

